package com.lvy.hczn.transmit.task;

import com.lvy.hczn.front.common.constant.RedisConstants;
import com.lvy.hczn.front.common.core.redis.RedisCache;
import com.lvy.hczn.front.system.domain.business.Warehouse;
import com.lvy.hczn.front.system.service.WarehouseService;
import com.lvy.hczn.mq.rocket.ParamInfo;
import com.lvy.hczn.transmit.domain.DepotSkuDetail;
import com.lvy.hczn.transmit.service.DepotSkuDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("transmitTask")
@Slf4j
public class TransmitTask {

    @Autowired
    private WarehouseService warehouseService;

    @Autowired
    private RedisCache redisCache;

    @Autowired
    private DepotSkuDetailService depotSkuDetailService;

    /**
     * 查询仓库临期可报损商品
     *
     * @return
     * @author yw
     * @date 2023-08-31 20:53:15
     */
    public void expired() {
        log.info("开始查询仓库临期可报损商品");
        DepotSkuDetail depotSkuDetail = new DepotSkuDetail();
        ParamInfo paramInfo = new ParamInfo();
        paramInfo.setData(depotSkuDetail);
        depotSkuDetailService.selectByFrmLossByWarehouseCode(paramInfo);
    }
}
